﻿using System.Text;

namespace MonkeysWithTypewriters.MonkeyProcessing
{
    public abstract class Primate : IPrimate
    {
        public string CreateText(int pageLength)
        {
            int sentenceCount = pageLength * 16;

            var stringBuilder = new StringBuilder();

            for (int i = 0; i < sentenceCount; i++)
            {
                string currentSentence = CreateSentence();
                stringBuilder.Append(currentSentence);
            }

            return stringBuilder.ToString();
        }

        protected abstract string CreateSentence();
    }
}